package com.yima.baseproj.module.app.feedback;

import com.yima.baseproj.aop.log.Logging;
import com.yima.baseproj.module.sys.feedback.FeedBackEntity;
import com.yima.baseproj.module.sys.feedback.FeedBackService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/api/app/feedback")
@RestController
public class AppFeedBackController {

    @Autowired
    private FeedBackService feedBackService;



    @ApiOperation("添加反馈内容")
    @PostMapping("/add")
    public void saveUser(@RequestBody @Validated FeedBackEntity customAdmin) {
        feedBackService.add(customAdmin);
    }
}
